package codetop.kuaishou.T470;

/**
 * @Author: 18362
 * @Create: 2022-09-13 22:27:15 星期二
 */
class Solution extends SolBase {

    public int rand10() {
        int x = 50;
        while (x > 40)
            x = 7 * (rand7() - 1) + rand7();
        return x % 10 + 1;
    }
}